package com.work.example.demo5.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.work.example.demo5.domain.BorrowEntity;
import com.work.example.demo5.domain.vo.BorrowEntityVo;
import com.work.example.demo5.domain.vo.BorrowformVo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface BorrowService extends IService<BorrowEntity> {
    List<BorrowEntityVo> getByName(String username);

    String getByBorrow(Long borrowId);

    List<BorrowEntityVo> getallborrow();

    int deletebyId(Long id);

    int saveBorrow(BorrowformVo BorrowformVo);

    int updateborrow(BorrowEntityVo borrowEntityVo);
}
